using System;

namespace OrbitOne.GoogleCustomSearch.QueryParameters
{
    /// <summary>
    /// Optional. The c2coff parameter enables or disables the Simplified and Traditional Chinese Search feature.
    /// </summary>
    public class C2Coff : QueryParameter
    {

        private string value = "0";
        public C2Coff()
        {

        }
        public C2Coff(string value)
            : base(value)
        {
        }

        public override string Name
        {
            get { return "c2coff"; }
        }

        public override string Value
        {
            get { return value; }
            set
            {
                if (value != "1" && value != "0")
                {
                    throw new ArgumentException("C2Coff value");
                }
                this.value = value;
            }
        }
    }
}
